<%--
  Created by IntelliJ IDEA.
  User: LV
  Date: 2016/6/27
  Time: 18:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>


<html>
<head>
    <title>分类属性列表</title>
</head>
<body>
<div class="row">
    <div class="col-md-12">
        <!-- BEGIN PAGE TITLE & BREADCRUMB-->
        <h3 class="page-title">
            分类属性管理
            <small>属性列表</small>
        </h3>
        <ul class="page-breadcrumb breadcrumb">
            <li>
                <i class="fa fa-home"></i>
                <a href="${ctx}/main">
                    首页
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="${ctx}/sys/role_list">
                    分类属性管理
                </a>
                <i class="fa fa-angle-right"></i>
            </li>
            <li>
                <a href="#">
                    列表
                </a>
            </li>
        </ul>
        <!-- END PAGE TITLE & BREADCRUMB-->
    </div>
</div>


<div class="main">

    <div class="row">
        <div class="col-md-12">
            <div class="text-right">
                <a href="${ctx}/category/addAttribute/${categoryId}" class="btn blue">添加分类属性</a>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-md-12">
            <table class="table table-striped table-hover zqy-table">
                <thead>
                <tr>
                    <th style="width: 300px;">ID</th>
                    <th >属性名</th>
                    <th style="width: 200px;">创建时间</th>
                    <th>管理分类属性值</th>
                    <th style="width: 200px;">操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${list}" var="attlist">
                <tr>
                    <td>${attlist.attributeId}</td>
                    <td>${attlist.attributeName}</td>
                    <td><fmt:formatDate value="${attlist.createOn}" pattern="yyyy-MM-dd HH:mm"/></td>
                    <td><a class="btn btn-xs" href="${ctx}/category/findAllAttributeValByAttributeId/${attlist.attributeId}">查看</a></td>
                    <td>
                        <a class="btn btn-xs" href="${ctx}/category/editCategoryAttribute/${attlist.attributeId}">编辑属性</a>
                        <a class="btn btn-xs js-deleteClassify" href="${ctx}/category/deleteCategoryAttribute/${attlist.attributeId}">删除属性</a>
                    </td>
                </tr>
                </c:forEach>

                </tbody>
            </table>
            <div class="text-center">
                <ul class="pagination">
                    <li>
                        <a href="#">
                            <i class="fa fa-angle-left"></i>
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            1
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            2
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            3
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            4
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            5
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            6
                        </a>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-angle-right"></i>
                        </a>
                    </li>
                </ul>
            </div>

        </div>
    </div>

</div>



</div>
</body>
</html>